<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:38:"./template/pc/default/index\index.html";i:1495157537;s:47:"./template/pc/default/public\public_header.html";i:1494466029;s:40:"./template/pc/default/public\header.html";i:1495011516;s:38:"./template/pc/default/public\side.html";i:1495015087;s:40:"./template/pc/default/public\footer.html";i:1495009700;s:43:"./template/pc/default/public\public_js.html";i:1495015689;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo $web['title']; ?></title>
<meta name="keywords" content="<?php echo $web['key_word']; ?>">
<meta name="description" content="<?php echo $web['description']; ?>">
<meta name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileColor" content="#0e90d2">
<!--<link rel="stylesheet" href="{CSS_PATH}assets/css/amazeui.min.css">-->
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">

<link rel="stylesheet" media="screen and (min-device-width:640px)"  href="__STATIC__/css/base.css" />
<link rel="stylesheet" media="screen and (max-device-width:639px)"   href="__STATIC__/css/phone/base.css" />

    <link rel="stylesheet" media="screen and (min-device-width:640px)"  href="__STATIC__/css/index.css"    />
    <link rel="stylesheet"  media="screen and (max-device-width:639px)" href="__STATIC__/css/phone/index.css"  />
</head>
<body >
<div class="container-fluid ck-container">
        <!--顶部start-->
        
<nav class="navbar navbar-default ck-navbar navbar-fixed-top" role="navigation">
	<div class="container-fluid ck-container">
		<div class="navbar-header ck-navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#example-navbar-collapse">
				<span class="sr-only">切换导航</span>
				<span class="icon-bar ck-icon-bar"></span>
				<span class="icon-bar ck-icon-bar"></span>
				<span class="icon-bar ck-icon-bar"></span>
			</button>
			<a class="navbar-brand ck-brand" href="#">ChKa命博客</a>
		</div>
		<div class="collapse navbar-collapse ck-nav" id="example-navbar-collapse">
			<ul class="nav navbar-nav">
				<li class="active">
					<a class="dropdown-toggle"  href="<?php echo url('index/index'); ?>">首页</a>
				</li>
				<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
					<li>
						<a class="dropdown-toggle" href="<?php echo url('index/category', array('cat_id'=> $vo['cat_id'])); ?>" data-toggle="dropdown" ><?php echo $vo['cat_name']; ?></a>
						<?php $childCat = get_child_cat($vo['cat_id']); if(!empty($childCat)): ?>
								<ul class="dropdown-menu">
										<?php if(is_array($childCat) || $childCat instanceof \think\Collection || $childCat instanceof \think\Paginator): $i = 0; $__LIST__ = $childCat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
											<li><a href="<?php echo url('index/category', array('cat_id'=> $vv['cat_id'])); ?>"><?php echo $vv['cat_name']; ?></a></li>
										<?php endforeach; endif; else: echo "" ;endif; ?>
								</ul>
							<?php endif; ?>
					</li>
				<?php endforeach; endif; else: echo "" ;endif; ?>
				<li class="active">
					<a class="dropdown-toggle"  href="<?php echo url('home/index/career'); ?>">职业生涯</a>
				</li>
			</ul>
			<form id="search" action="<?php echo url('home/index/search'); ?>" method="post">
				<div class="input-group search hidden-sm">
						<input type="text" name="keyword" class="form-control" placeholder="请输入搜索关键词">
						<span class="input-group-btn">
							<button class="btn btn-default" type="submit">Go!</button>
						   </span>
				</div><!-- /input-group -->
			</form>
		</div>

		</div>
	</div>
</nav>

        <!--顶部end-->
        <!--主体start-->
        <main>
            <div id="carousel-example-generic" class="carousel slide row visible-xs" data-ride="carousel">
                <!-- Indicators -->
                <ol class="carousel-indicators">
                    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                </ol>

                <!-- Wrapper for slides -->
                <div class="carousel-inner banner" role="listbox">
                    <div class="item active">
                        <img src="__STATIC__/images/php.jpg" alt="...">
                    </div>
                    <div class="item">
                        <img src="__STATIC__/images/java.jpg" alt="...">

                    </div>
                    <div class="item">
                        <img src="__STATIC__/images/js.jpg" alt="...">
                    </div>
                </div>
            </div>
            <section class="row article">
                 <!--主体内容start-->
                <div class="col-xs-12 col-md-8">
                    <div class="left-content">
                        <!--最新博文start-->
                        <div class="division hidden-xs"></div>
                        <div class="article2">
                            <div class="ck-title">
                                <h2>最新博文</h2>
                            </div>
                            <div>
                                <?php if(is_array($newArt) || $newArt instanceof \think\Collection || $newArt instanceof \think\Paginator): $i = 0; $__LIST__ = $newArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <ul>
                                        <li class="list-container">
                                            <div class="list-division"></div>
                                            <div>
                                                <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                                    <h3 class="article-title"><?php echo $vo['title']; ?></h3>
                                                </a>
                                                <div class="hidden-xs article-info row">
                                                    <p class="article-info">
                                                        <span> <i class="fa fa-user-circle"></i> <?php echo $vo['author']; ?></span>
                                                        <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d H:i:s', $vo['add_time']); ?></span>
                                                        <a href="<?php echo url('index/category', array('cat_id'=> $vo['cat_id'])); ?>"><span class="article-cat"><i class="fa fa-th"></i> <?php echo get_cat_name($vo['cat_id']); ?></span></a>
                                                        <span class="article-comment"><i class="fa fa-eye"></i> <?php echo $vo['browse']; ?></span>
                                                    </p>
                                                    <div class="col-md-4 thumb">
                                                        <a class="pic" href="#">
                                                            <img src="<?php echo WEB_PATH. $vo['thumb']; ?>" alt="">
                                                        </a>
                                                    </div>
                                                            <div class="col-md-8 abstract">
                                                               <?php echo str_cut(strip_tags($vo['content']) ,500, ""); ?>
                                                            </div>
                                                </div>
                                                <div class="comment visible-xs">
                                                    <i class="fa fa-eye"></i> <span><?php echo $vo['browse']; ?></span>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                        </div>
                        <!--最新博文end-->

                        <!--后端start-->
                        <div class="division hidden-xs"></div>
                        <div class="article2">
                            <div class="ck-title">
                                <h2>后端</h2>
                            </div>
                            <div>
                                <ul>
                                    <?php if(is_array($backArt) || $backArt instanceof \think\Collection || $backArt instanceof \think\Paginator): $i = 0; $__LIST__ = $backArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                            <li class="list-container">
                                                <div class="list-division"></div>
                                                <div>
                                                    <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                                        <h3 class="article-title"><?php echo $vo['title']; ?></h3>
                                                    </a>
                                                    <div class="hidden-xs article-info row">
                                                        <p class="article-info">
                                                            <span> <i class="fa fa-user-circle"></i> <?php echo $vo['author']; ?></span>
                                                            <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d H:i:s', $vo['add_time']); ?></span>
                                                            <a href=""><span class="article-cat"><i class="fa fa-th"></i> <?php echo get_cat_name($vo['cat_id']); ?></span></a>
                                                            <span class="article-comment"><i class="fa fa-eye"></i> <?php echo $vo['browse']; ?></span>
                                                        </p>
                                                        <div class="col-md-4 thumb">
                                                            <a class="pic" href="#">
                                                                <img src="<?php echo WEB_PATH. $vo['thumb']; ?>" alt="">
                                                            </a>
                                                        </div>
                                                        <div class="col-md-8 abstract">
                                                           <?php echo str_cut(strip_tags($vo['content']) ,500, ""); ?>
                                                        </div>
                                                    </div>
                                                    <div class="comment visible-xs">
                                                        <i class="fa fa-eye"></i> <span><?php echo $vo['browse']; ?></span>
                                                    </div>
                                                </div>
                                            </li>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </div>
                        </div>
                        <!--后端end-->

                        <!--前端start-->
                        <div class="division hidden-xs"></div>
                        <div class="article2">
                            <div class="ck-title">
                                <h2>前端</h2>
                            </div>
                            <div>
                                <ul>
                                    <?php if(is_array($frontArt) || $frontArt instanceof \think\Collection || $frontArt instanceof \think\Paginator): $i = 0; $__LIST__ = $frontArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                        <div class="list-division"></div>
                                        <li class="list-container">
                                            <div>
                                                <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                                    <h3 class="article-title"><?php echo $vo['title']; ?></h3>
                                                </a>
                                                <div class="hidden-xs article-info row">
                                                    <p class="article-info">
                                                        <span> <i class="fa fa-user-circle"></i> <?php echo $vo['author']; ?></span>
                                                        <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d H:i:s', $vo['add_time']); ?></span>
                                                        <a href=""><span class="article-cat"><i class="fa fa-th"></i> <?php echo get_cat_name($vo['cat_id']); ?></span></a>
                                                        <span class="article-comment"><i class="fa fa-eye"></i> <?php echo $vo['browse']; ?></span>
                                                    </p>
                                                    <div class="col-md-4 thumb">
                                                        <a class="pic" href="#">
                                                            <img src="<?php echo WEB_PATH. $vo['thumb']; ?>" alt="">
                                                        </a>
                                                    </div>
                                                    <div class="col-md-8 abstract">
                                                       <?php echo str_cut(strip_tags($vo['content']) ,500, ""); ?>
                                                    </div>
                                                </div>
                                                <div class="comment visible-xs">
                                                    <i class="fa fa-eye"></i> <span><?php echo $vo['browse']; ?></span>
                                                </div>
                                            </div>
                                        </li>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </div>
                        </div>
                        <!--前端nd-->

                        <!--数据库start-->
                        <div class="division hidden-xs"></div>
                        <div class="article2">
                            <div class="ck-title">
                                <h2>数据库</h2>
                            </div>
                            <div>
                                <ul>
                                    <?php if(is_array($sqlArt) || $sqlArt instanceof \think\Collection || $sqlArt instanceof \think\Paginator): $i = 0; $__LIST__ = $sqlArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                        <li class="list-container">
                                            <div class="list-division"></div>
                                            <div>
                                                <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                                    <h3 class="article-title"><?php echo $vo['title']; ?></h3>
                                                </a>
                                                <div class="hidden-xs article-info row">
                                                    <p class="article-info">
                                                        <span> <i class="fa fa-user-circle"></i> <?php echo $vo['author']; ?></span>
                                                        <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d H:i:s', $vo['add_time']); ?></span>
                                                        <a href=""><span class="article-cat"><i class="fa fa-th"></i> <?php echo get_cat_name($vo['cat_id']); ?></span></a>
                                                        <span class="article-comment"><i class="fa fa-eye"></i> <?php echo $vo['browse']; ?></span>
                                                    </p>
                                                    <div class="col-md-4 thumb">
                                                        <a class="pic" href="#">
                                                            <img src="<?php echo WEB_PATH. $vo['thumb']; ?>" alt="">
                                                        </a>
                                                    </div>
                                                    <div class="col-md-8 abstract">
                                                      <?php echo str_cut(strip_tags($vo['content']) ,500, ""); ?>
                                                    </div>
                                                </div>
                                                <div class="comment visible-xs">
                                                    <i class="fa fa-eye"></i> <span><?php echo $vo['browse']; ?></span>
                                                </div>
                                            </div>
                                        </li>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </div>
                        </div>
                        <!--数据库end-->

                        <!--操作系统 start-->
                        <div class="division hidden-xs"></div>
                        <div class="article2 visible-xs">
                            <div class="ck-title">
                                <h2>操作系统</h2>
                            </div>
                            <div>
                                <ul>
                                    <?php if(is_array($sysArt) || $sysArt instanceof \think\Collection || $sysArt instanceof \think\Paginator): $i = 0; $__LIST__ = $sysArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                        <li class="list-container">
                                            <div class="list-division"></div>
                                            <div>
                                                <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                                    <h3 class="article-title"><?php echo $vo['title']; ?></h3>
                                                </a>
                                                <div class="hidden-xs article-info row">
                                                    <p class="article-info">
                                                        <span> <i class="fa fa-user-circle"></i> <?php echo $vo['author']; ?></span>
                                                        <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d H:i:s', $vo['add_time']); ?></span>
                                                        <a href=""><span class="article-cat"><i class="fa fa-th"></i> <?php echo get_cat_name($vo['cat_id']); ?></span></a>
                                                        <span class="article-comment"><i class="fa fa-eye"></i> <?php echo $vo['browse']; ?></span>
                                                    </p>
                                                    <div class="col-md-4 thumb">
                                                        <img src="<?php echo WEB_PATH. $vo['thumb']; ?>" alt="">
                                                    </div>
                                                    <div class="col-md-8 abstract">
                                                        <?php echo str_cut(strip_tags($vo['content']) ,500, ""); ?>
                                                    </div>
                                                </div>
                                                <div class="comment visible-xs">
                                                    <i class="fa fa-eye"></i> <span><?php echo $vo['browse']; ?></span>
                                                </div>
                                            </div>
                                        </li>
                                        <div class="list-division"></div>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </div>
                        </div>
                        <!--操作系统 end-->
                    </div>
                </div>
                <!--主体内容end-->

                <!--侧边栏start-->

                <div class="col-xs-12 col-md-4 hidden-xs">
                         
    <!--精品推荐tart-->
    <div class="division"></div>
    <div class="article2 hidden-xs">
        <div class="ck-title">
            <span>精品推荐</span>
        </div>
        <div>
            <ul>
                <?php if(is_array($essenceArt) || $essenceArt instanceof \think\Collection || $essenceArt instanceof \think\Paginator): $i = 0; $__LIST__ = $essenceArt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li>
                        <div class="list-container">
                            <a href="<?php echo url('index/show', array('id'=> $vo['id'])); ?>" target="_blank">
                                <h5 class="article-title"><i class="fa fa-thumbs-o-up"></i> <span><?php echo $vo['title']; ?></span></h5>
                            </a>
                            <div class="comment">
                                <span class="article-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-d', $vo['add_time']); ?></span>
                            </div>
                        </div>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <!--精品推荐end-->

    <!--热门标签tart-->
    <div class="division"></div>
    <div class="article2 hidden-xs">
        <div class="ck-title">
            <span>热门标签</span>
        </div>
        <div class="ck-tag-con">
            <?php if(is_array($tag) || $tag instanceof \think\Collection || $tag instanceof \think\Paginator): $i = 0; $__LIST__ = $tag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <a href="<?php echo url('home/index/tag', array('tag_id' => $vo['tag_id'])); ?>"><button type="button" class="btn ck-tag <?php echo gat_tag_color(); ?>"><?php echo $vo['tag_name']; ?></button></a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <!--热门标签end-->

    <!--实用工具tart-->
    <div class="division"></div>
    <div class="article2 hidden-xs">
        <div class="ck-title">
            <span>资源分享</span>
        </div>
        <div>
            <ul>
                <?php if(is_array($resources) || $resources instanceof \think\Collection || $resources instanceof \think\Paginator): $i = 0; $__LIST__ = $resources;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li>
                        <div class="list-container">
                            <a href="<?php echo $vo['url']; ?>" target="_blank">
                                <h5 class="article-title"><i class="fa fa-briefcase"></i> <span><?php echo $vo['name']; ?></span></h5>
                            </a>
                            <div class="comment">
                                <span class="article-time">网盘密码: <?php echo $vo['password']; ?></span>
                            </div>
                        </div>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <!--实用工具end-->

    <!--在线留言tart-->
    <div class="division "></div>
    <div class="article2 hidden-xs  visible-lg">
        <div class="ck-title">
            <span>在线留言</span>
        </div>
        <div>
            <form id="Message" class="form-horizontal">
                <div class="message">
                    <textarea name="content" class="form-control" rows="3"></textarea>
                     <button type="submit" class="btn ck-tag btn-primary">留言</button>
                </div>
            </form>
            <ul class="message-container1">
              <?php if(is_array($msg) || $msg instanceof \think\Collection || $msg instanceof \think\Paginator): $i = 0; $__LIST__ = $msg;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li>
                    <div class=" row message-container">
                        <div class="col-md-12">
                            <img class="message-thumb img-circle" src="__STATIC__/images/php.jpg" alt="">
                            <span class="message-name"><?php echo $vo['name']; ?><small class="message-time"><?php echo date('Y-m-d', $vo['add_time']); ?></small></span>
                        </div>
                        <div class="col-md-offset-1 col-md-11">
                            <p class="message-content"><?php echo $vo['content']; ?></p>
                        </div>
                    </div>
                </li>
              <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <!--在线留言end-->

    <!--相关链接tart-->
    <div class="division"></div>
    <div class="article2 hidden-xs">
        <div class="ck-title">
            <span>相关链接</span>
        </div>
        <div>
            <ul>
               <?php if(is_array($link) || $link instanceof \think\Collection || $link instanceof \think\Paginator): $i = 0; $__LIST__ = $link;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                 <li>
                    <div class="list-container">
                        <a href="<?php echo $vo['url']; ?>" target="_blank">
                            <h5 class="article-title"><i class="fa fa-link"></i> <span><?php echo $vo['name']; ?></span></h5>
                        </a>
                    </div>
                </li>
               <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <!--相关链接end-->

                </div>
                <!--侧边栏end-->

            </section>
        </main>
        <!--主体end-->
    <!--底部start-->
    <footer class="row footer">
    <div>
        <div class="copyright us">
            <span>关于我</span> <span>联系我</span>
        </div>
        <div class="copyright">
            <span>www.ckblog.com</span> <span>琼ICP0000000</span>
        </div>
    </div>
</footer>

    <!--底部end-->
</div>
<script src="__PUBLIC__/jquery/jquery-2.1.4.min.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/layer/layer.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/jquery.form.js"></script>

<script>
        //在线留言
    $('#Message').submit(function () {
        $(this).ajaxSubmit({
            type : 'POST', //GET,POST
            url: '<?php echo WEB_PATH; ?>/Home/Index/message',
            dataType : 'json', //xml,json,script，默认为null
            resetForm : true, //成功提交后，重置表单
            success : function (data) {
                layer.open({
                    type: 1,
                    time: 1000,
                    area: ['200px', '200px'],
                    content: data.msg //服务器返回的消息
                });
                if(data.status == 1) {
                    setTimeout(function () {
                        window.location.reload();
                    }, 1200);
                }
            },
            error : function (event, errorText, errorType) { //错误时调用
                alert(errorText + errorType);
            }
        });
        return false;
    });
</script>

<script>

    $('.carousel').carousel({
        interval:4000
    });
</script>
</body>
</html>
